Skip to content

feat(pi): add Kitty graphics library - #228

Merged
Patel230 merged 1 commit into
mainfrom
feat/pi-kitty-graphics
Aug 22, 2026
Merged

feat(pi): add Kitty graphics library#228
Patel230 merged 1 commit into
mainfrom
feat/pi-kitty-graphics

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Implements the P2 #5 Kitty graphics item from docs/plans/pi-adoption-plan.md as a self-contained, testable library:

  • internal/tui/kitty: Kitty graphics protocol support
    • ParseCapabilityResponse — determines terminal support from the capability-response (i=31 / OK / s=1)
    • EncodeFrame — chunked APC graphics transmission (RGB/RGBA/PNG formats, multi-chunk with m=0/m=1 flags)
    • Unit tests: capability parsing, single-chunk + multi-chunk encoding, base64 payload round-trip, race-clean

Render-loop integration (wiring encoded frames into the terminal renderer) is documented as a follow-up, consistent with the renderer-swap follow-up already tracked for the diff engine.

Test plan

  • Full go test ./... green (twice + via pre-push hook)
  • internal/tui/kitty + internal/tui/diff race-tested
  • make vet, make lint, hawk verify green
  • Boundary guards, submodule drift, govulncheck passed in pre-push hooks
  • markdownlint-cli2 clean on the updated plan doc

@Patel230
Patel230 merged commit 1b97994 into main Aug 22, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/pi-kitty-graphics branch August 22, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant